package com.coderman.common.starter.idempotent.bean;

import java.util.Date;

/**
 * Description: 幂等请求持久化
 * date: 2020/9/14 3:17 下午
 *
 * @author fanchunshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
public class IdemPotentBean {
    /**
     * 主键ID
     */
    private Long id;
    /**
     * 项目名称
     */
    private String projectName;
    /**
     * 请求业务编码或者/注解配置的key
     */
    private String requestCode;
    /**
     * 请求的json字符串
     */
    private String requestJson;
    /**
     * 请求类型
     */
    private int funcType;
    /**
     * 响应数据
     */
    private String responseJson;

    /**
     * 使用乐观锁的版本号机制存储幂等数据
     */
    private int version;

    private Date createDate;

    private Date updateDate;

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getRequestCode() {
        return requestCode;
    }

    public void setRequestCode(String requestCode) {
        this.requestCode = requestCode;
    }

    public String getRequestJson() {
        return requestJson;
    }

    public void setRequestJson(String requestJson) {
        this.requestJson = requestJson;
    }

    public int getFuncType() {
        return funcType;
    }

    public void setFuncType(int funcType) {
        this.funcType = funcType;
    }

    public String getResponseJson() {
        return responseJson;
    }

    public void setResponseJson(String responseJson) {
        this.responseJson = responseJson;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }
}
